package com.ycz.pattern.structure.flyweightpattern;

/**
 * @Description
 * @ClassName Circle
 * @Author yanchengzhi
 * @date 2023.11.27 00:57
 */
public class Circle implements Shape {

    private String color;
    private int x;
    private int y;
    private int radius;

    public Circle(String color) {
        this.color = color;
    }

    public void setX(int x) {
        this.x = x;
    }

    public void setY(int y) {
        this.y = y;
    }

    public void setRadius(int radius) {
        this.radius = radius;
    }

    @Override
    public void draw() {
        System.out.println("Circle：Color：" + color + "，center(" + x + "," + y + ")，radius：" + radius);
    }
}
